package com.ruoyi.hxf.mapper;

import com.ruoyi.hxf.domain.Advice;
import com.ruoyi.hxf.domain.vo.AdviceVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 反馈(校长邮箱)Mapper接口
 *
 * @author hxf
 * @date 2022-12-23
 */
public interface AdviceMapper extends BaseMapperPlus<AdviceMapper, Advice, AdviceVo> {

    List<AdviceVo> SelectAllAdvice();


    List<AdviceVo> SelectMyAdvice(@Param("userId") Long userId);


    AdviceVo SelectAdviceById(@Param("id") Long id);

    void updateAdvice(AdviceVo adviceVo);

    void updateAdviceById(@Param("id")Long id);

    void deleteAdviceById(@Param("id")Long id);
}
